<?php
$cache = new Cache_request();
$currentID = $cache->get("currentID");
$menu = service_menu::getOne($currentID);
if(service_menu::hasSubMenu($currentID)){
	$subMenus = service_menu::getSubMenu($currentID);
}else{
	$subMenus = service_menu::getSubMenu(29);
}
?>
<div id="com_left">
	<div id="left_up">
		<span><?php echo $menu['title'];?></span>
	</div>
	<div id="left_middle">
		<ul>
		<?php foreach($subMenus as $item):?>
			<li><a href="<?php echo service_menu::getUrlByID($item['id']);?>"><span><?php echo $item['title'];?></span></a></li>
		<?php endforeach;?>
		</ul>	
	</div>
	<div id="left_bottom">
		<jdoc:include type="modules" name="contact" />
	</div>
</div>
